package com.server.schedule.initialnizer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import com.server.navigater.INavigaterService;
import com.server.service.IRewardService;
import com.server.service.IUserManagementService;

public class InitialnizeProcessor implements ApplicationListener<ContextRefreshedEvent> {
	
	@Autowired
	private INavigaterService navigaterService;
	@Autowired
	private IRewardService rewardService;
	@Autowired
	private IUserManagementService userManagementService;
	
	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		navigaterService.loadData();
		rewardService.loadData();
		userManagementService.loadMonth();
	}
	
}
